package org.ourgrid.broker.communication.sender;

import org.ourgrid.broker.communication.dao.AccountingAggregatorDAO;
import org.ourgrid.broker.response.RemoveAccountingAggregatorResponseTO;
import org.ourgrid.common.internal.SenderIF;

import br.edu.ufcg.lsd.commune.container.servicemanager.ServiceManager;
import br.edu.ufcg.lsd.commune.identification.ServiceID;

public class RemoveAccountingAggregatorSender implements SenderIF<RemoveAccountingAggregatorResponseTO> {

	public void execute(RemoveAccountingAggregatorResponseTO response,
			ServiceManager manager) {
		
		AccountingAggregatorDAO.getInstance().removeAccountingAggregator(ServiceID.parse(response.getPeerAddress()));
	}

}
